<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<include file="./Tpl/default/Index/header.html" />
<link href="__PUBLIC__/css/base.css" type="text/css" rel="stylesheet" />
<link href="__PUBLIC__/css/main.css" type="text/css" rel="stylesheet" />
<title>万州特色农产品网</title>

<script language="JavaScript">
	$(document).ready(function(){
	  // 在这里写你的代码...
		 $('#userAddress').hide();
	});

	function editAddress(){
		$('#userAddress').show();
	}
	function canceleditAddress(){
		$('#userAddress').hide();
	}
	
</script>


</head>
<body>

<div class="w980 clear mT10 p20 font12">
<p class="font18 fontYH line24 lineB w90auto pTB5 mB10"><span class="mainbg block fLeft" style="background-position:-391px -120px; width:33px;height:25px;margin-right:3px;"></span>收货地址<label></label>  <a class="p2 font12 bgOrange white border-s-Orange mR10" href="__APP__/UserCenter/userInfomation">修改收货地址</a><!--  <input class="p2 bgOrange white border-s-Orange mR10" style="cursor:pointer;border:0;" border="0"   type="button" onclick="editAddress();" value="&nbsp;编辑&nbsp;"/>  <input class="p2 bgOrange white border-s-Orange mR10" style="cursor:pointer;border:0;" border="0"   type="button" onclick="deleteAddress" value="&nbsp;删除&nbsp;"/> --></p>

<p class="w90auto p10"> {$userVo['address']}</p>

<div id = "userAddress" class="w70auto">
	<div class="p5 border-d-b clear"><div class="fLeft w101" align="right">收货人：</div><span class="fLeft"><input type="text" name="orderName" /></span></div>
	<div class="p5 border-d-b clear"><div class="fLeft w101" align="right">地区： </div><span class="fLeft"><input type="text" name="orderRegion" /></span></div>
	<div class="p5 border-d-b clear"><div class="fLeft w101" align="right">详细地址：</div><span class="fLeft"><input type="text" name="orderAddress" /></span> </div>
	<div class="p5 border-d-b clear"><div class="fLeft w101" align="right">邮政编码：</div><span class="fLeft"><input type="text" name="zipCode" /></span> </div>
	<div class="p5 border-d-b clear"><div class="fLeft w101" align="right">手机：</div><span class="fLeft"><input type="text" name="phone" /></span></div>
	<div class="p5 border-d-b clear"><div class="fLeft w101" align="right">&nbsp;</div><span class="fLeft"><input class="p2 bgOrange white border-s-Orange mR10" style="cursor:pointer;"  type="button" onclick="canceleditAddress();" value="取消编辑"/></span></div>	
</div>


<p class="font18 fontYH line24 lineB w90auto pTB5 mB20 mT10"><span class="mainbg block fLeft" style="background-position:-425px -120px; width:26px;height:25px;margin-right:3px;"></span>产品清单</p>
<form action = "__URL__/saveOrder">
<table border="0" class="w90auto lineBorder font12 mT10" cellpadding="5" cellspacing="1">
	<tr>
		<th class="p10 white" bgcolor="#777777">序号</th>
		<th class="p10 white" bgcolor="#777777">商品</th>
		<th class="p10 white" bgcolor="#777777">名称</th>
		
		<th class="p10 white" bgcolor="#777777">单价</th>
		<th class="p10 white" bgcolor="#777777">数量（件）</th>
		<th class="p10 white" bgcolor="#777777">小计</th>		
	</tr>	
	<volist id="vo" name="list" key="k">
		<tr >
							
			
			<td valign="middle" align="center" class="p10"><input type="hidden" style="float:left;width:2px;"  name="andy[]" value="{$vo['product_id']}" />	<input type="hidden" style="float:left;width:2px;"  name="god[]" value="{$vo['name']}" /> <span id="number{$k}"><label>{$vo['id']}</label></span></td>			
			<td valign="middle" align="center" class="p10"><a href ="__APP__/ProductDetail/index/id/{$vo['product_id']}" target="_blank"><img width="100" height="100" class="p1 lineBorder" src="__PUBLIC__/uploadfiles/files/common/{$vo['imageurl_small']}"></a></td>
			<td valign="middle" class="p10"><a href ="__APP__/ProductDetail/index/id/{$vo['product_id']}" target="_blank" class="orange">{$vo['name']}</a></td>
			
			<td valign="middle" align="center" class="p10"><span id="price{$k}">{$vo['local_price']}</span></td>			
			<td valign="middle" align="center" class="p10">{$vo['quantity']}</td> <input type="hidden" style="float:left;width:2px;"  name="quantityList[]" value="{$vo['quantity']}" />
			<td valign="middle" align="center" class="p10"><span id="lumpsum{$k}">{$vo['lumpsum']}</span></td>			
		</tr>
	</volist>
	<tr>
<td colspan="8" class="p10 lineB lineT" align="right">产品数量总计：<span class="orange" id="productcount">{$productcount}</span> 件 产品金额总计：￥<span class="orange" id='totle'>{$totlecount}</span></td>
</tr>

<!-- 产品金额总计 -->
<input type="hidden" name="totlecount" id="totle_id" value="{$totlecount}" />
<input type="hidden" name="productcount" id="productcount_id" value="{$productcount}"/>

    <tr>
<td colspan="7" class="p10 lineT" align="right">
	<input class="p5 bgOrange white border-s-Orange mR10" style="cursor:pointer;border:0;" border="0"  type="submit" value="提交订单" />
    </td>
</tr>
</table>
</form>
</div>


</body>
</html>